package com.zide.system.domain.dept.vo.result;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.zide.common.core.domain.entity.SysDept;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 石添
 * @date 2024/3/19 17:35
 */
@Schema(description = "出参 - 部门结果集")
@Data
public class SysDeptResultVO implements Serializable {

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "父部门ID")
    private Long parentId;

    @Schema(description = "祖级列表")
    private String ancestors;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "显示顺序")
    private Integer orderNum;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "联系电话")
    private String mobile;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "部门状态:0正常,1停用")
    private Integer status;

    @Schema(description = "逻辑删除【0：未删除，1：已删除】")
    private Integer deleted;

    @Schema(description = "父部门名称")
    private String parentName;

    @Schema(description = "子部门")
    private List<SysDept> children = new ArrayList<SysDept>();
}
